/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PantallaMaterialesModificar.java
 *
 * Created on 16-may-2011, 21:24:47
 */
package interfacesGraficas.JDialogs;

import java.awt.Frame;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JTextField;

/**
 *
 * @author diego
 */
public class PantallaMaterialesModificar extends JDialog {

    /** Creates new form PantallaMaterialesModificar */
    public PantallaMaterialesModificar() {
        initComponents();
    }

    public PantallaMaterialesModificar(Frame owner) {
        super(owner);
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        jPanel1 = new javax.swing.JPanel();
        txtCodigoMat = new javax.swing.JTextField();
        txtNombreMat = new javax.swing.JTextField();
        txtTamañoMat = new javax.swing.JTextField();
        cbxUnidadMat = new javax.swing.JComboBox();
        cbxTipoMat = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jToolBar1 = new javax.swing.JToolBar();
        btnGuardar = new javax.swing.JButton();
        btnCancelar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("Añadir/Modificar Material");
        getContentPane().setLayout(new java.awt.GridBagLayout());

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Material"));
        jPanel1.setLayout(new java.awt.GridBagLayout());

        txtCodigoMat.setMaximumSize(new java.awt.Dimension(190, 27));
        txtCodigoMat.setMinimumSize(new java.awt.Dimension(190, 27));
        txtCodigoMat.setPreferredSize(new java.awt.Dimension(190, 27));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 15, 0, 20);
        jPanel1.add(txtCodigoMat, gridBagConstraints);

        txtNombreMat.setMaximumSize(new java.awt.Dimension(190, 27));
        txtNombreMat.setMinimumSize(new java.awt.Dimension(190, 27));
        txtNombreMat.setPreferredSize(new java.awt.Dimension(190, 27));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 0);
        jPanel1.add(txtNombreMat, gridBagConstraints);

        txtTamañoMat.setMaximumSize(new java.awt.Dimension(190, 27));
        txtTamañoMat.setMinimumSize(new java.awt.Dimension(190, 27));
        txtTamañoMat.setPreferredSize(new java.awt.Dimension(190, 27));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 20, 0);
        jPanel1.add(txtTamañoMat, gridBagConstraints);

        cbxUnidadMat.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "metros", "kilogramos", "litros", "unidad" }));
        cbxUnidadMat.setMaximumSize(new java.awt.Dimension(190, 27));
        cbxUnidadMat.setMinimumSize(new java.awt.Dimension(190, 27));
        cbxUnidadMat.setPreferredSize(new java.awt.Dimension(190, 27));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 15, 0, 20);
        jPanel1.add(cbxUnidadMat, gridBagConstraints);

        cbxTipoMat.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cbxTipoMat.setMaximumSize(new java.awt.Dimension(190, 27));
        cbxTipoMat.setMinimumSize(new java.awt.Dimension(190, 27));
        cbxTipoMat.setPreferredSize(new java.awt.Dimension(190, 27));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 0);
        jPanel1.add(cbxTipoMat, gridBagConstraints);

        jLabel1.setText("Código Material");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 15, 0, 20);
        jPanel1.add(jLabel1, gridBagConstraints);

        jLabel2.setText("Nombre Material");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 20, 0, 0);
        jPanel1.add(jLabel2, gridBagConstraints);

        jLabel3.setText("Tamaño Material");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 20, 0, 0);
        jPanel1.add(jLabel3, gridBagConstraints);

        jLabel4.setText("Unidad Material");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 15, 0, 20);
        jPanel1.add(jLabel4, gridBagConstraints);

        jLabel5.setText("Tipo Material");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 20, 0, 0);
        jPanel1.add(jLabel5, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        getContentPane().add(jPanel1, gridBagConstraints);

        jToolBar1.setRollover(true);
        jToolBar1.setMinimumSize(new java.awt.Dimension(100, 40));
        jToolBar1.setPreferredSize(new java.awt.Dimension(100, 40));

        btnGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Save_30.png"))); // NOI18N
        btnGuardar.setToolTipText("Guardar");
        jToolBar1.add(btnGuardar);

        btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Log-out-30.png"))); // NOI18N
        btnCancelar.setToolTipText("Salir");
        jToolBar1.add(btnCancelar);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
        getContentPane().add(jToolBar1, gridBagConstraints);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnGuardar;
    private javax.swing.JComboBox cbxTipoMat;
    private javax.swing.JComboBox cbxUnidadMat;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JTextField txtCodigoMat;
    private javax.swing.JTextField txtNombreMat;
    private javax.swing.JTextField txtTamañoMat;
    // End of variables declaration//GEN-END:variables

    public JButton getBtnCancelar() {
        return btnCancelar;
    }

    public JButton getBtnGuardar() {
        return btnGuardar;
    }

    public JComboBox getCbxTipoMat() {
        return cbxTipoMat;
    }

    public JComboBox getCbxUnidadMat() {
        return cbxUnidadMat;
    }

    public JTextField getTxtCodigoMat() {
        return txtCodigoMat;
    }

    public JTextField getTxtNombreMat() {
        return txtNombreMat;
    }

    public JTextField getTxtTamañoMat() {
        return txtTamañoMat;
    }

}
